home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi Magazine Collection 2001
/
Delphi Magazine Collection 20001 (2001).iso
/
DISKS
/
ISSUE03
/
CONSTRUC
/
TREDIT.OLD
< prev
next >
Wrap
Text File
|
1995-07-05
|
1KB
|
57 lines
unit Tredit;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls;
type
TRightEdit = class(TMemo)
private
{ Private declarations }
protected
{ Protected declarations }
property Align;
property Alignment;
property Lines;
property ScrollBars;
property WantReturns;
property WantTabs;
property WordWrap;
public
{ Public declarations }
constructor Create(AOwner: TComponent); override;
procedure SetBounds(ALeft, ATop, AWidth, AHeight: Integer); override;
published
{ Published declarations }
property CharCase;
property Text; { read GetText write SetText; }
end;
procedure Register;
implementation
constructor TRightEdit.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
Align := alNone;
Alignment := taRightJustify;
ScrollBars := ssNone;
WantReturns := False;
WantTabs := False;
WordWrap := False;
end;
procedure TRightEdit.SetBounds(ALeft, ATop, AWidth, AHeight: Integer);
begin
if AHeight > (2 * abs(Font.Height)) then AHeight := 2 * abs(Font.Height);
inherited SetBounds(ALeft, ATop, AWidth, AHeight);
end;
procedure Register;
begin
RegisterComponents('Dr.Bob', [TRightEdit]);
end;
end.